package grape.crm.rest.customercredential.vo;
import grape.base.service.dict.api.IDictService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import grape.crm.service.customer.api.ICustomerService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 客户证件表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="客户证件数据响应对象")
public class CustomerCredentialVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "客户id")
    private String customerId;

    @TransBy(type = ICustomerService.trans_customer_name_else_appellation,byFieldName = "customerId")
    @ApiModelProperty(value = "客户姓名")
    private String customerName;

    @ApiModelProperty(value = "证件类型,字典")
    private String credentialTypeDictId;

    @TransBy(type = IDictService.trans_dictName,byFieldName = "credentialTypeDictId")
    @ApiModelProperty(value = "证件类型,字典名称")
    private String credentialTypeDictName;

    @ApiModelProperty(value = "证件编码/内容")
    private String credential;


}
